//
//  MineVillageViewController.m
//  Village
//
//  Created by longrise on 2017/9/7.
//  Copyright © 2017年 程虎. All rights reserved.
//

#import "MineVillageViewController.h"
#import "VailtalView.h"
#import "VailtalReferViewController.h"
@interface MineVillageViewController ()
@property (nonatomic ,strong) VailtalView *vailtaview;
@end

@implementation MineVillageViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.title = @"我的村落";
    self.view.backgroundColor = kBackgroundColor;
    [self setvall];
}

- (void)setvall{
    
    _vailtaview = [[VailtalView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, KDeviceHeight)];
    [self.view addSubview:_vailtaview];
    [_vailtaview.button addTarget:self action:@selector(buttonAction) forControlEvents:UIControlEventTouchUpInside];
}

- (void)buttonAction{
    VailtalReferViewController *vailtal = [[VailtalReferViewController alloc] init];
    [self.navigationController pushViewController:vailtal animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
